package com.iwhalecloud.bss.kite.cucc.service.attr.handler;

import com.iwhalecloud.bss.kite.common.constant.KeyConsts;
import com.iwhalecloud.bss.kite.common.util.KiteStringUtils;
import com.iwhalecloud.bss.kite.manager.api.IOperateSceneInstService;
import com.iwhalecloud.bss.kite.manager.api.IQuerySceneInstService;
import com.iwhalecloud.bss.kite.manager.inst.KiteAttr;
import com.iwhalecloud.bss.kite.manager.inst.KiteInst;
import com.iwhalecloud.bss.kite.service.attr.AttrData;
import com.iwhalecloud.bss.kite.service.attr.handler.AbstractAttrHandler;
import com.ztesoft.bss.common.util.SpringUtil;

public class InterfaceTypeAttrHandler extends AbstractAttrHandler {
//    @Override
//    public void onShow(KiteAttr attr, KiteInst inst, AttrData data) {
//        super.onShow(attr, inst, data);
//        // 互联网类产品,端口类型属性在订单归集后的环节不允许再编辑
//        IQuerySceneInstService querySceneInstService = SpringUtil.getBean(IQuerySceneInstService.class);
//        String nodeCode = querySceneInstService.getExtParameterValue(data.getSceneInstId(), "nodeCode");
//        IOperateSceneInstService operateSceneInstService = SpringUtil.getBean(IOperateSceneInstService.class);
//        // app甩单补录、资源核查补录情况，可以编辑
//        String renderOrderType = querySceneInstService.getExtParameterValue(data.getSceneInstId(), "renderOrderType");
//        if (!KiteStringUtils.isEmpty(nodeCode) && !KiteStringUtils.isEqual(renderOrderType, "orderRejection")) {
//            attr.setIsEdit(KeyConsts.IFTRUE_F);
//            operateSceneInstService.setAttr(data.getSceneInstId(), inst.getInstType(), inst.getInstId(), attr);
//        }
//    }
}
